﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class GioiThieuDeTail : System.Web.UI.Page
{
    public int lang = 2;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            int loai =Convert.ToInt32( Request.QueryString["loai"]);
            
            if (Request.QueryString["lang"] != "" && Request.QueryString["lang"]!=null) lang = Convert.ToInt32(Request.QueryString["lang"]);

            GioiThieuDataSet gtDs = new GioiThieuHelper().LoadGioiThieu(loai, lang);
            NoiDung.DS = gtDs;
            string strTen = "";
            if (lang == 1)
            {
                strTen = "<a href='/GioiThieu.aspx?lang=1' >Giới thiệu </a>>> ";
            }
            else
            {
                strTen = "<a href='/GioiThieu.aspx?lang=2' >About us </a> >> ";
            }
            //get pagename
            NoiDung.pagename = strTen + "<a href=''>"+LoaiDataHelper.LoadLoaiGioiThieu(lang)[loai].ToString()+"</a>";

        }
    }
}